FROM nginx
COPY conf/nginx.conf /etc/nginx/nginx.conf
COPY conf/conf.d /etc/nginx/conf.d
COPY html/ /usr/share/nginx/html/
COPY logs/ /var/log/nginx/
COPY conf.d/default.conf /etc/nginx/conf.d/default.conf
COPY ssl/ /ssl/
COPY cache/ /nginx/cache


# docker build -f Dockerfile -t zipblog .
# docker rmi
# docker logs zipblogdemo

#docker exec -it d85fd3a937f4 /bin/bash
# exit
#
docker run -d -p 80:80 -p 443:443 --name zipblogDemo \
-d  zipblog
-v /nginx/ssl:/ssl/ \

docker run  -p 80:80 -p 443:443 --name zipblogclient01 \
-v /nginx/ssl:/ssl/ \
-d --rm zipblog